package com.sharkburner.aeris.ui.module.article.model;

import java.io.Serializable;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.sharkburner.aeris.service.article.ArticleService;
import com.vaadin.data.Container;

@Component
public class ArticleModel implements Serializable {

    /**
	 * 
	 */
    private static final long serialVersionUID = 7150068271140232558L;
    public static final String TITLE = "TITLE";
    public static final String DESCR = "DESCR";
    public static final String DATA = "DATA";

    @Autowired
    protected ArticleService articleService;

    public Container getData() {
	return articleService.findArticles();
    }

}
